<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">

<title>CMS Portal </title>

<meta name="description" content="">
<meta name="author" content="revaxarts.com">


<!-- Google Font and style definitions -->
<link rel="stylesheet"
	href="http://fonts.googleapis.com/css?family=PT+Sans:regular,bold">
<link rel="stylesheet"
	href="<?php echo $this->config->item('base_url').$this->config->item('admincss'); ?>style.css">

<!-- include the skins (change to dark if you like) -->
<link rel="stylesheet"
	href="<?php echo $this->config->item('base_url').$this->config->item('admincss'); ?>light/theme.css"
	id="themestyle">
<!-- <link rel="stylesheet" href="<?php echo $this->config->item('base_url').$this->config->item('admincss'); ?>dark/theme.css" id="themestyle"> -->

<!--[if lt IE 9]>
	<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<link rel="stylesheet" href="<?php echo $this->config->item('base_url').$this->config->item('admincss'); ?>ie.css">
	<![endif]-->

<!-- Apple iOS and Android stuff -->
<meta name="apple-mobile-web-app-capable" content="no">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed"
	href="apple-touch-icon-precomposed.png">

<!-- Apple iOS and Android stuff - don't remove! -->
<meta name="viewport"
	content="width=device-width,initial-scale=1,user-scalable=no,maximum-scale=1">

<!-- Use Google CDN for jQuery and jQuery UI -->
<script
	src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script
	src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/jquery-ui.min.js"></script>

<!-- Loading JS Files this way is not recommended! Merge them but keep their order -->

<!-- some basic functions -->
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>functions.js"></script>

<!-- all Third Party Plugins -->
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>plugins.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>editor.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>calendar.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>flot.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>elfinder.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>datatables.js"></script>

<!-- all Whitelabel Plugins -->
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>wl_Alert.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>wl_Autocomplete.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>wl_Breadcrumb.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>wl_Calendar.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>wl_Chart.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>wl_Color.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>wl_Date.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>wl_Editor.js"></script>
 <script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>wl_File.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>wl_Dialog.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>wl_Fileexplorer.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>wl_Form.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>wl_Gallery.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>wl_Multiselect.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>wl_Number.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>wl_Password.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>wl_Slider.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>wl_Store.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>wl_Time.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>wl_Valid.js"></script>
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>wl_Widget.js"></script>

<!-- configuration to overwrite settings -->
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>config.js"></script>

<!-- the script which handles all the access to plugins etc... -->
<script
	src="<?php echo $this->config->item('base_url').$this->config->item('adminjs'); ?>script.js"></script>
 
</head>
<body>
	<div id="pageoptions">
		<ul>
			<li><a href="<?php  echo site_url('admincp/logout');?>">Logout</a></li> 
		</ul>
	</div>

	<header>
		<div id="header">
			<div id="searchbox">
				<form id="searchform">
					<input type="search" name="query" id="search" placeholder="Search">
				</form>
			</div>
		</div>
	</header>

	<nav>
		<ul id="nav">
			<li class="i_house"><a href="<?php  echo site_url('admincp/dashboard');?>"><span>Trang chủ</span> </a>
			</li>
			<li class="i_blocks_images"><a ><span>Modules hệ thống</span> </a>
				<ul>
					<li><a href="<?php  echo site_url('admincp/functions');?>"><span>Danh sách modules</span> </a></li>
					<li><a href="<?php  echo site_url('admincp/addfunctions');?>"><span>Thêm mới modules</span> </a></li> 
				</ul>
			</li>
			<li class="i_book"><a><span>Thành viên</span> </a>
				<ul> 
					<li><a href="<?php  echo site_url('admincp/users');?>"><span>Danh sách thành viên</span> </a></li>
				</ul>
			</li>
			
			<li class="i_file_cabinet"><a><span>Plugin</span> </a>
				<ul>
					<?php foreach($modules as $row):?>
						<li><a href="<?php  echo site_url($row->ffile);?>"><span><?php echo $row->fname; ?></span> </a></li> 
					<?php endforeach; ?> 
				</ul>
			</li>
			
			<!-- <li class="i_create_write"><a><span>Khách hàng</span> </a>
				<ul>
					<li><a href=" "><span>D/S khách hàng đã thanh toán</span> </a></li>
					<li><a href=" "><span>D/S khách hàng chưa thanh toán</span> </a></li> 
				</ul>
			</li>
			<li class="i_graph"><a href="<?php  echo site_url('admincp/charts');?>"><span>Báo cáo sản lượng</span> </a></li>
			<li class="i_images"><a href=" "><span>Gallery</span> </a> </li>
			
			<li class="i_breadcrumb"><a href=" "><span>Breadcrumb</span> </a></li>
			<li class="i_file_cabinet"><a href=" "><span>Fileexplorer</span> </a></li>
			<li class="i_calendar_day"><a href=" "><span>Calendar</span> </a></li>
			<li class="i_speech_bubbles_2"><a href=" "><span>Dialogs &amp; Buttons</span> </a></li>
			<li class="i_table"><a href=" "><span>Table</span> </a> </li>
			<li class="i_typo"><a href=" "><span>Typo</span> </a></li> -->
			<li class="i_grid"><a href="<?php  echo site_url('admincp/logout');?>"><span>Thoát</span> </a></li>
		</ul>
	</nav>



	<section id="content">
		<div class="g12 nodrop">
			<h1>Xin chào <font color="red">{username}</font></h1>
			<p>Thông tin đăng nhập của bạn đã được lưu lại cho bảo mật - {ipaddress}</p>
		</div>
 		<div class="g12">
			<?php if($this->router->fetch_method() == 'dashboard') { ?> 
	    		<?php $this->load->view('backend/charts');?>
	    	<?php } ?>
	    	<?php if($this->router->fetch_method() == 'functions') { ?> 
	    		<?php $this->load->view('backend/functions');?>
	    	<?php } ?>
	    	<?php if($this->router->fetch_method() == 'addfunctions') { ?> 
	    		<?php $this->load->view('backend/addfunctions');?>
	    	<?php } ?>
	    	<?php if($this->router->fetch_method() == 'users') { ?> 
	    		<?php $this->load->view('backend/listusers');?>
	    	<?php } ?>
	    	<?php if($this->router->fetch_method() == 'addusers') { ?> 
	    		<?php $this->load->view('backend/addusers');?>
	    	<?php } ?>
	    	<?php 
	    		foreach($modules as $row)
	    		{
	    			if($this->router->fetch_class() == $row->ffile)
	    			{
	    				$this->load->view( $row->ffile."/".$row->ffile );
	    			}
	    		}
	    	?>
		</div>
	</section>
	<footer>Bản quyền thuốc về <a href="http://sodala.co">SODALA.CO</a></footer>
</body>
</html>

